---
title: Step
sidebarTitle: Step
---

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `name` | `Optional[str]` | `None` | Name of the step for identification |
| `agent` | `Optional[Agent]` | `None` | Agent to execute for this step |
| `team` | `Optional[Team]` | `None` | Team to execute for this step |
| `executor` | `Optional[StepExecutor]` | `None` | Custom function to execute for this step |
| `step_id` | `Optional[str]` | `None` | Unique identifier for the step (auto-generated if not provided) |
| `description` | `Optional[str]` | `None` | Description of the step's purpose |
| `max_retries` | `int` | `3` | Maximum number of retry attempts on failure |
| `timeout_seconds` | `Optional[int]` | `None` | Timeout for step execution in seconds |
| `skip_on_failure` | `bool` | `False` | Whether to skip this step if it fails after all retries |
| `add_workflow_history` | `bool` | `False` | If True, add the workflow history to the step |
| `num_history_runs` | `int` | `None` | Number of runs to include in the workflow history, if not provided, all history runs are included |